<%@ Page Language="C#" MasterPageFile="~/master/public-regular.master" AutoEventWireup="true"
    CodeFile="shopping-cart.aspx.cs" Inherits="myaccount_shopping_cart" %>

<%@ Register  Namespace="ECommerce.Library.Web" TagPrefix="ucc" %>
<%@ Register  Namespace="ECommerce.Library.ECommerce" TagPrefix="ucc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderNestedHeader"
    runat="Server">
  
</asp:Content>
<asp:Content ID="cntContent" ContentPlaceHolderID="cphMiddleContent" runat="Server">
    <div class="regular-pages inline">
        <ucc:ResponseMessage ID="uccResponseMessage" runat="server"></ucc:ResponseMessage>
        <div class="shoping-steps">
            <div class="btn-regular">
                Shopping Cart
            </div>
            <div class="btn-regular btn-dim">
                Login/Register
            </div>
            <div class="btn-regular btn-dim">
                Order Summary 
            </div>
            <div class="btn-regular btn-dim">
                Receipt
            </div>
        </div>
        <br class="clear" />
        <asp:Panel runat="server" ID="pnlEmptyCart">
        </asp:Panel>
        <asp:Panel runat="server" ID="pnlShoppingCart" Width="100%">
            <div class="shopping-cart-grid">
                <asp:Repeater ID="rptShoppingCart" runat="server" OnItemDataBound="rptShoppingCart_ItemDataBound"
                    OnItemCommand="rptShoppingCart_ItemCommand">
                    <HeaderTemplate>
                        <div class="btn-place-holder clearfix">
                            <asp:Button runat="server" ID="imbItemRemove" Text="Delete" CssClass="btn-regular btn-shopping-cart-delete"
                                OnClick="imbItemRemove_Click" />
                        </div>
                        <div class="grid-header clearfix">
                            <div class="item">
                                Item
                            </div>
                            <div class="price">
                                Price</div>
                            <div class="quantity">
                                Quantity</div>
                            <div class="total">
                                Total</div>
                            <div class="modify">
                                Modify</div>
                            <div class="checkbox">
                                <asp:CheckBox runat="server" ID="cbxSelectAll" Visible="false" />
                            </div>
                        </div>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Panel runat="server" ID="pnlProduct" DefaultButton="imbItemUpdate">
                            <div class="grid-item clearfix">
                                <div class="item">
                                    <div class="grid-product-image">
                                        <asp:Image runat="server" ID="imgItemImage" />
                                    </div>
                                    <asp:HyperLink runat="server" ID="hlkItem"></asp:HyperLink>
                                    <br />
                                    <asp:Label runat="server" ID="lblItemNumber"></asp:Label>
                                </div>
                                <div class="price">
                                    <asp:Label runat="server" ID="lblItemPrice"></asp:Label>
                                </div>
                                <div class="quantity">
                                    <asp:TextBox runat="server" ID="tbxQuantity" CssClass="text" MaxLength="2" Width="32px"></asp:TextBox></div>
                                <div class="total">
                                    <asp:Label runat="server" ID="lblItemTotal"></asp:Label></div>
                                <div class="modify">
                                    <asp:Button runat="server" ID="imbItemUpdate" CssClass="btn-regular" Text="Update"
                                        CommandName="UpdateCart" />
                                </div>
                                <div id="tdRepeater1" class="checkbox" runat="server">
                                    <asp:CheckBox runat="server" ID="cbxSelect" />
                                </div>
                                <asp:HiddenField runat="server" ID="hdfProductId" />
                            </div>
                        </asp:Panel>
                    </ItemTemplate>
                    <FooterTemplate>
                        <div class="grid-footer">
                            <label>
                                Subtotal:
                            </label>
                            <asp:Label runat="server" ID="lblSubTotal" CssClass="grid-footer-total"></asp:Label>
                        </div>
                    </FooterTemplate>
                </asp:Repeater>
            </div>
            <div class="grid-footer">
            </div>
            <div class="shopping-cart-grid">
                <asp:Repeater ID="rptShoppingCartForGift" runat="server" OnItemDataBound="rptShoppingCartForGift_ItemDataBound"
                    OnItemCommand="rptShoppingCartForGift_ItemCommand">
                    <HeaderTemplate>
                        <div class="btn-place-holder clearfix">
                            <asp:Button runat="server" ID="imbItemRemove" Text="Delete" CssClass="btn-regular btn-shopping-cart-delete"
                                OnClick="imbItemRemove_Click" />
                        </div>
                        <div class="grid-header clearfix">
                            <div class="item">
                                Gift Certificate
                            </div>
                            <div class="price">
                                Price</div>
                            <div class="quantity">
                                Quantity</div>
                            <div class="total">
                                Total</div>
                            <div class="modify">
                                Modify</div>
                            <div class="checkbox">
                                <asp:CheckBox runat="server" ID="cbxSelectAll" Visible="false" />
                            </div>
                        </div>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Panel runat="server" ID="pnlProduct" DefaultButton="imbItemUpdate">
                            <div class="grid-item clearfix">
                                <div class="item">
                                    <label>
                                        Name</label>
                                    <asp:Label ID="lblToName" runat="server" Text="Label"></asp:Label>
                                    <br />
                                    <label>
                                        Email</label>
                                    <asp:Label ID="lblToEmail" runat="server" Text="Label"></asp:Label>
                                </div>
                                <div class="price">
                                    <asp:Label runat="server" ID="lblItemPrice"></asp:Label>
                                </div>
                                <div class="quantity">
                                    <asp:TextBox runat="server" ID="tbxQuantity" CssClass="text" MaxLength="2" Width="32px"></asp:TextBox>
                                    <asp:Label ID="lblQuantityRequired" runat="server">&nbsp;</asp:Label>
                                </div>
                                <div class="total">
                                    <asp:Label runat="server" ID="lblItemTotal"></asp:Label>
                                </div>
                                <div class="modify">
                                    <asp:Button runat="server" ID="imbItemUpdate" CssClass="btn-regular" Text="Update"
                                        CommandName="UpdateCart" />
                                </div>
                                <div class="checkbox">
                                    <asp:CheckBox runat="server" ID="cbxSelect" />
                                    <asp:HiddenField runat="server" ID="hdnGiftId" />
                                </div>
                            </div>
                        </asp:Panel>
                    </ItemTemplate>
                    <SeparatorTemplate>
                    </SeparatorTemplate>
                    <FooterTemplate>
                        <div class="grid-footer">
                            <label>
                                Subtotal:
                            </label>
                            <asp:Label runat="server" ID="lblSubTotal" CssClass="grid-footer-total"></asp:Label>
                        </div>
                    </FooterTemplate>
                </asp:Repeater>
            </div>
            <div class="grid-footer">
            </div>
            <asp:Label ID="lblNoGift" runat="server" Text="" Visible="false"></asp:Label>
            <div>
              
                <asp:CheckBox runat="server" ID="cbxAccept" /> <span>I acknowledge that I have read and accept the 
                    <asp:HyperLink ID="hplShippingPolicy" runat="server" CssClass="commonlink" Target="_blank">Shipping and Return Policy</asp:HyperLink>.</span><br />
                
           <br class="clear" />
            </div>
            
        </asp:Panel>
            <br class="clear" /><br />
        <div class="btn-place-holder clearfix">
            <asp:Button runat="server" ID="imbContinueShopping" Text="Continue Shopping" CssClass="button medium gray"
                OnClick="imbContinueShopping_Click1" />
            <asp:Button runat="server" ID="imbCheckout" Text="Checkout" CssClass="button medium red"
                OnClick="imbCheckout_Click" />
        </div>
        <br />
    </div>
</asp:Content>
